<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateExampleTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('example', function(Blueprint $table)
		{
			$table->increments('id');
			$table->unsignedInteger('org_id');
			$table->string('title')->nullable();
			$table->string('org_desc')->nullable();
			$table->string('url')->nullable();
			$table->integer('img_exam_id')->default(0);
			$table->integer('state')->default(0);
			$table->softDeletes();
			$table->timestamps();
		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schama::drop('example') ;
	}

}
